﻿using RabbitMQClientCore;

using System;

namespace client2
{
    class Program
    {
        static void Main(string[] args)
        {
            RabbitMqClient.SetQueueName("UnitySir");
            RabbitMqClient.SetExChange("");

            RabbitMqClient.ReceiveSimple(str =>
            {
                Console.WriteLine($"接收的数据=>{str}");
            });

            //RabbitMqClient.ReceiveFanout(msg =>
            //{
            //    Console.WriteLine($"接收的数据=>{msg}");
            //});

            Console.ReadKey();
        }
    }
}
